package com.starview.star.compiler.util;

import java.util.Map;

public interface UndoableMap<K, V> extends Map<K, V>
{
  /**
   * Get the current undo state
   * 
   * @return
   */
  int undoState();

  /**
   * Undo the map to a previous version
   * 
   * @param state
   */
  void undo(int state) throws IllegalStateException;
}
